import api from "@/util/api.js";

//查询
async function findAll(pageNum = 1, pageSize = 10, params = {}) {
    let resp = await api({
        url: "/customer/self",
        method: "get",
    });
    return resp;
}
//修改
async function update(customer) {
    let resp = await api({
        url: "/customer/self",
        method: "put",
        data: customer
    });
    return resp;
}
//添加订单
async function addOrder(customer) {
    let resp = await api({
        url: "/customer/Order",
        method: "post",
        data: customer
    });
    return resp;
}
export { findAll, update, addOrder }
